############## NET - IOSTANDARD #####################
set_property CFGBVS VCCO [current_design]
set_property CONFIG_VOLTAGE 3.3 [current_design]
#############SPI Configurate Setting#################
set_property BITSTREAM.CONFIG.SPI_BUSWIDTH 4 [current_design] 
set_property CONFIG_MODE SPIx4 [current_design] 
set_property BITSTREAM.CONFIG.CONFIGRATE 50 [current_design] 
############## clock define##########################
create_clock -period 5 [get_ports clk_in_p]
set_property PACKAGE_PIN R4 [get_ports clk_in_p]
set_property IOSTANDARD DIFF_SSTL15 [get_ports clk_in_p]
##############reset key define########################
##KEY1
set_property PACKAGE_PIN B18 [get_ports rstn_pad]
set_property IOSTANDARD LVCMOS33 [get_ports rstn_pad]
##KEY2
set_property PACKAGE_PIN B17 [get_ports init_enable_pad]
set_property IOSTANDARD LVCMOS33 [get_ports init_enable_pad]
############## usb uart define########################
set_property IOSTANDARD LVCMOS33 [get_ports rx_pin_pad]
set_property PACKAGE_PIN Y12 [get_ports rx_pin_pad]
set_property IOSTANDARD LVCMOS33 [get_ports tx_pin_pad]
set_property PACKAGE_PIN Y11 [get_ports tx_pin_pad]
##################spi -- Mirco SD card################
set_property IOSTANDARD LVCMOS33 [get_ports spi_clk_pad]
set_property PACKAGE_PIN C14 [get_ports spi_clk_pad]
set_property IOSTANDARD LVCMOS33 [get_ports spi_ss_pad]
set_property PACKAGE_PIN A13 [get_ports spi_ss_pad]
set_property IOSTANDARD LVCMOS33 [get_ports spi_mosi_pad]
set_property PACKAGE_PIN C15 [get_ports spi_mosi_pad]
set_property IOSTANDARD LVCMOS33 [get_ports spi_miso_pad]
set_property PACKAGE_PIN E17 [get_ports spi_miso_pad]
################gpio##################################
##KEY 34
set_property IOSTANDARD LVCMOS33 [get_ports {io_pin_pad[0]}]
set_property PACKAGE_PIN A16 [get_ports {io_pin_pad[0]}]
set_property IOSTANDARD LVCMOS33 [get_ports {io_pin_pad[1]}]
set_property PACKAGE_PIN A15 [get_ports {io_pin_pad[1]}]
##LED1234
#set_property IOSTANDARD LVCMOS33 [get_ports {io_pin_pad[2]}]
#set_property PACKAGE_PIN C17 [get_ports {io_pin_pad[2]}]
#set_property IOSTANDARD LVCMOS33 [get_ports {io_pin_pad[3]}]
#set_property PACKAGE_PIN D17 [get_ports {io_pin_pad[3]}]
#set_property IOSTANDARD LVCMOS33 [get_ports {io_pin_pad[4]}]
#set_property PACKAGE_PIN V20 [get_ports {io_pin_pad[4]}]
#set_property IOSTANDARD LVCMOS33 [get_ports {io_pin_pad[5]}]
#set_property PACKAGE_PIN U20 [get_ports {io_pin_pad[5]}]
###J5
#set_property IOSTANDARD LVCMOS33 [get_ports {io_pin_pad[6]}]
#set_property PACKAGE_PIN AB15 [get_ports {io_pin_pad[6]}]
#set_property IOSTANDARD LVCMOS33 [get_ports {io_pin_pad[7]}]
#set_property PACKAGE_PIN AA15 [get_ports {io_pin_pad[7]}]
#set_property IOSTANDARD LVCMOS33 [get_ports {io_pin_pad[8]}]
#set_property PACKAGE_PIN AA14 [get_ports {io_pin_pad[8]}]
#set_property IOSTANDARD LVCMOS33 [get_ports {io_pin_pad[9]}]
#set_property PACKAGE_PIN Y13 [get_ports {io_pin_pad[9]}]
#set_property IOSTANDARD LVCMOS33 [get_ports {io_pin_pad[10]}]
#set_property PACKAGE_PIN AB17 [get_ports {io_pin_pad[10]}]
#set_property IOSTANDARD LVCMOS33 [get_ports {io_pin_pad[11]}]
#set_property PACKAGE_PIN AB16 [get_ports {io_pin_pad[11]}]
#set_property IOSTANDARD LVCMOS33 [get_ports {io_pin_pad[12]}]
#set_property PACKAGE_PIN AA16 [get_ports {io_pin_pad[12]}]
#set_property IOSTANDARD LVCMOS33 [get_ports {io_pin_pad[13]}]
#set_property PACKAGE_PIN Y16 [get_ports {io_pin_pad[13]}]
#set_property IOSTANDARD LVCMOS33 [get_ports {io_pin_pad[14]}]
#set_property PACKAGE_PIN AB12 [get_ports {io_pin_pad[14]}]
#set_property IOSTANDARD LVCMOS33 [get_ports {io_pin_pad[15]}]
#set_property PACKAGE_PIN AB11 [get_ports {io_pin_pad[15]}]
